
class GameMain {
	private static _me: GameMain;
	public static get me() {
		if (this._me == null)
			this._me = new GameMain();
		return this._me;
	}
	public proto: Proto = new Proto();
	public evNet: egret.EventDispatcher;	

	public commonEvent: egret.EventDispatcher;
	

	public config: Config;

	
	public resource: Resource;
	public objectPool: ObjectPool;
	public deltaTime: number;
	public stageWidth: number;
	public stageHeight: number;
	public sound: SoundManager = new SoundManager();
		
	public constructor() {
	}

	public mcNanager:MovieClipManager;
	public Start() {
		this.mcNanager = new MovieClipManager();
		this.evNet = new egret.EventDispatcher()//网络事件分发器
		this.commonEvent = new egret.EventDispatcher();//普通事件分发器
		this.resource = new Resource();

	}
}

